package com.demo.netty.controller;

import com.demo.netty.client.NettyClientA;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.actuate.autoconfigure.MetricRepositoryAutoConfiguration;
import org.springframework.boot.actuate.metrics.CounterService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author liangliang
 */
@Controller
@RequestMapping("/")
public class IndexController {

    // 统计service
    @Qualifier("counterService")
    @Autowired
    private CounterService counterService;

    @Autowired
    private NettyClientA nettyClientA;

    @RequestMapping("sendMsg")
    @ResponseBody
    public String sendMsg(@RequestBody String msg){
        nettyClientA.s
    }
}
